/**
 * Created by caoyang on 17/3/28.
 */

import React, { Component } from 'react';

import { Provider } from 'react-redux';
import App from './containers/App';
import store from './store/store';


export default class Root extends Component {

    render() {
        return (
             // 将从iOS、安卓原生传递过来的属性传给provider
            <Provider {...this.props} store={store}>
                 {/*将provider组件的属性传递给App组件*/}
                <App {...this.props} />
            </Provider>
        )
    }

    componentDidMount() {
        console.log(this.props);
    }
}

